<%--
    Document   : elearning
    Created on : Apr 26, 2012, 12:06:38 PM
    Author     : Khin
--%>

<%@page import="supportlearning.entities.CMSClass"%>
<%@page import="supportlearning.entities.Account"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
    <head>
        <%
                    String sess = (String) session.getAttribute("sessuser");
                    if (sess == null) {
                        response.sendRedirect("index.jsp");
                    }
        %>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"  />
        <title>CMS-FPT Aptech</title>
        <meta name="keywords" content="free css templates, web design, 2-column, html css" />
        <meta name="description" content="Web Design is a 2-column website template (HTML/CSS) provided by templatemo.com" />
        <link href="templatemo_style.css" rel="stylesheet" type="text/css" />

        <!--////// CHOOSE ONE OF THE 3 PIROBOX STYLES  \\\\\\\-->
        <link href="css_pirobox/white/style.css" media="screen" title="shadow" rel="stylesheet" type="text/css" />

        <!--<link href="css_pirobox/white/style.css" media="screen" title="white" rel="stylesheet" type="text/css" />
        <link href="css_pirobox/black/style.css" media="screen" title="black" rel="stylesheet" type="text/css" />-->
        <!--////// END  \\\\\\\-->

        <!--////// INCLUDE THE JS AND PIROBOX OPTION IN YOUR HEADER  \\\\\\\-->
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/piroBox.1_2.js"></script>

        <script type="text/javascript">
            $(document).ready(function() {
                $().piroBox({
                    my_speed: 600, //animation speed
                    bg_alpha: 0.5, //background opacity
                    radius: 4, //caption rounded corner
                    scrollImage : false, // true == image follows the page, false == image remains in the same open position
                    pirobox_next : 'piro_next', // Nav buttons -> piro_next == inside piroBox , piro_next_out == outside piroBox
                    pirobox_prev : 'piro_prev',// Nav buttons -> piro_prev == inside piroBox , piro_prev_out == outside piroBox
                    close_all : '.piro_close',// add class .piro_overlay(with comma)if you want overlay click close piroBox
                    slideShow : 'slideshow', // just delete slideshow between '' if you don't want it.
                    slideSpeed : 4 //slideshow duration in seconds(3 to 6 Recommended)
                });
            });

            function check(form){
                if(form.txtfirstname.value.toString()==""){
                    window.alert("This field is required.");
                    form.txtfirstname.focus();
                    return false;
                }
                else if(form.txtlastname.value.toString()==""){
                    window.alert("This field is required.");
                    form.txtlastname.focus();
                    return false;
                }
              
                else if(form.txtpassword.value.toString()==""){
                    window.alert("This field is required.");
                    form.txtpassword.focus();
                    return false;
                }
                else if(form.txtconfirm_password.value.toString()==""){
                    window.alert("This field is required.");
                    form.txtconfirm_password.focus();
                    return false;
                }
                else if(form.txtconfirm_password.value.toString()!= form.txtpassword.value.toString()){
                    window.alert("This field not same the field confirm password.");
                    form.txtconfirm_password.focus();
                    return false;
                }
                else if(form.txtaddress.value.toString()==""){
                    window.alert("This field is required.");
                    form.txtaddress.focus();
                    return false;
                }

                else if(form.txtemail.value.toString()==""){
                    window.alert("This field is required.");
                    form.txtemail.focus();
                    return false;
                } else if(form.txtemail.value.toString()!=""){
                    var reg = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/;
                    var address = form.txtemail.value;
                    if(reg.test(address) == false) {
                        window.alert('Invalid Email Address');
                        form.txtemail.focus();
                        return false;
                    }
                }
             
            }
        </script>
     
        <style type="text/css">

            #signupForm { width: 670px; }
            #signupForm label.error {
                margin-left: 10px;
                width: auto;
                display: inline;
            }

        </style>
        <!--////// END  \\\\\\\-->
    </head>
    <body>

        <div id="templatemo_body_wrapper">
            <div id="templatemo_wrapper">

                <div id="tempaltemo_header">
                    <span id="header_icon"></span>
                    <div id="header_content">
                        <div id="site_title">
                            <a href="" target="_parent"><img src="images/templatemo_logo.png" alt="LOGO" /></a>            </div>
                        <p>CMS - FPT Academy International.</p>

                    </div>
                </div> <!-- end of header -->

                <div id="templatemo_main_top"></div>
                <div id="templatemo_main"><span id="main_top"></span><span id="main_bottom"></span>

                    <div id="templatemo_sidebar">

                        <div id="templatemo_menu">
                            <ul>
                                <li><a href="showalluser"  target="_parent" >Home</a></li>
                                <li><a href="manageStaff" target="_parent" class="current">Manage Staff</a></li>
                                <li><a href="manageStudent" target="_parent" >Manage Student</a></li>
                                <li><a href="manageCourse" target="_parent">Manage Course </a></li>
                                <li><a href="manageClass" target="_parent">Manage Class</a></li>
                                <li><a href="servletfaqs" target="_parent" >Manage FAQ</a></li>
                                <li><a href="elearning.jsp" target="_parent">Assignment</a></li>
                            </ul>
                        </div> <!-- end of templatemo_menu -->

                        <div class="sidebar_box">
                            <div class="sb_title">Course Login</div>
                            <div class="sb_content">
                                <div style="font-size: 15" id="login_form">
                                    <form method="post" action="servletlogin">
                                        <span>Hello:</span>
                                        <label ><%=sess%></label>
                                        <br>
                                        <input type="submit" name="action"  value="Logout" />
                                        <br>
                                        <a href="servletchangepass?id=<%=sess%>" >Change password</a>
                                    </form>
                                </div>
                            </div>
                            <div class="sb_bottom"></div>
                        </div>

                        <div class="sidebar_box">
                            <div class="sb_title">Latest Updates</div>
                            <div class="sb_content">

                                <div class="sb_news_box">
                                    <a href="#">Thời Khóa Biểu - FAT3.</a>
                                    <span>25 April 2012</span>
                                </div>

                                <div class="sb_news_box">
                                    <a href="#">FPT Jetking hỗ trợ 30% học phí cho sinh viên hệ thống FPT.</a>
                                    <span>18 April 2012</span>
                                </div>

                                <a href="#"><strong>View All</strong></a>
                            </div>

                            <div class="sb_bottom"></div>

                        </div>

                        <center>
                            <a href="http://validator.w3.org/check?uri=referer"><img style="border:0;width:88px;height:31px" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" width="88" height="31" vspace="8" border="0" /></a> &nbsp;&nbsp;&nbsp;
                            <a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px"  src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" vspace="8" border="0" /></a>
                        </center>

                        <div class="cleaner"></div>
                    </div> <!-- end of sidebar -->

                    <div id="templatemo_content">

                        <div style="font-size: medium"  align="left" class="content_box">
                            <header id="header" class="info">
                                <h2>Support Learning </h2>
                                
                            </header>

                            <c:set var="info" value="${requestScope.accobj}"></c:set>

                            <c:if test="${not empty info}">
                                <form  action="servletStudents" name="form1" onsubmit="return check(form1)" method="post">
                                    <input type="hidden" name="stuid" value="${info.accountId}"/>
                                  

                                    <br><br>
                                    <table >

                                        <tbody>
                                            <tr>
                                                <td><a href="updateStudentAvatar.jsp?stuid=${info.accountId}&url=${info.avatar}"><img src="${info.avatar}" width="100" height="100" />
                                                    </a></td>
                                                <td><h3><b>Student's profile.</b></h3></td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <td>First name:</td>
                                                <td>${info.firstName}</td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <td>Last name:</td>
                                                <td>${info.lastName}</td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <td>Address:</td>
                                                <td>${info.address}</td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <td>Email:</td>
                                                <td>${info.email}</td>
                                            </tr>

                                            <tr>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                            </tr>
                                               <tr>
                                                <td></td>
                                                <td>  <input id="login_submit" type="submit" name="action" value="Edit" tabindex="10"/></td>
                                                <td></td>
                                            </tr>
                                        </tbody>
                                    </table>

                                    
                                      
                                   
                                </form>
                            </c:if>
                        </div>
                        <div class="cleaner"></div>
                    </div>

                    <div class="cleaner"></div>
                </div>

                <div id="templatemo_main_bottom">
                </div>

            </div> <!-- end of wrapper -->
        </div>

        <div id="templatemo_footer_wrapper">
            <div id="templatemo_footer">
                Copyright © 2012 Aptech Iboard News. All Rights Reserved.<a href="#"></a> |
                <a href="" target="_parent">Website Templates</a> by <a href="" target="_parent">F5-1009-S1</a>

            </div>
        </div>

    </body>
</html>
